package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.XiaoClass;
import com.net.tkc.pro.impl.XiaoClassImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class XiaoClassService{
    @Resource
    XiaoClassImpl xiaoClass;


    public int addXiaoClass(XiaoClass xiaoClass2) {
        return xiaoClass.addXiaoClass(xiaoClass2);
    }


    public List<XiaoClass> getAuthorList(String author) {
        return xiaoClass.getAuthorList(author);
    }


    public List<XiaoClass> getTitleList(String title) {
        return xiaoClass.getTitleList(title);
    }


    public List<XiaoClass> getClassList() {
        return xiaoClass.getClassList();
    }


    public int upExamine(int examine, int id) {
        return xiaoClass.upExamine(examine, id);
    }

    public int upstatus(int status, int id) {
        return xiaoClass.upstatus(status, id);
    }
}
